<template>
  <div class="home">
    home
    登录状态： {{ isLogin }}
    <div>
      登录用户姓名：{{ userName }}  
    </div>
    <div>
      userCount: {{ userCount }}
    </div>
  </div>
</template>

<script>
/* eslint-disable */
import { mapState, mapGetters } from 'vuex'
import { namespace as UserSpace } from '../store/user'
  export default {
    name: 'home',
    computed: {
      isLogin () {
        return this.$store.state.login.isLogin
      },
      count() {
        return this.$store.getters[`${UserSpace}/userCount`]
      },
      ...mapGetters(`${UserSpace}`, ['userCount', 'userName'])
    },
  }
</script>

<style lang="less">
  .home{
    
  }
</style>
